package com.deplume.ssm.service.impl.admin.home;

import com.deplume.ssm.mapper.home.IMainMapper;
import com.deplume.ssm.pojo.admin.Job;
import com.deplume.ssm.pojo.home.TypeOne;
import com.deplume.ssm.service.inface.admin.home.IMainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by libing on 2016/8/4.
 */
@Service("mainService")
public class MainServiceImpl implements IMainService {

    @Autowired
    IMainMapper mainMapper;

    @Override
    public TypeOne getFirstAndSecondTypes(int order) throws Exception {
        return mainMapper.getFirstAndSecondTypes(order);
    }

    @Override
    public TypeOne getSumTypes(int order) throws Exception {
        return mainMapper.getSumTypes(order);
    }

/*    @Override
    public List<TypeOne> getSumTypeList() throws Exception {
        return mainMapper.getSumTypeList();
    }*/

    @Override
    public List<Job> selectJobs() throws Exception {
        return mainMapper.selectJobs();
    }
}
